package lamada.filter;

import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * Copyright (C) 2023 思创数码科技股份有限公司
 * <p/>
 * 版权所有
 * <p/>
 * 类名　　  : Test
 * 功能概要  :
 *
 * @Author : yangwk
 * @Date : 2024/2/1 21:10
 */
public class Test {
    public static void main(String[] args) throws Exception {
        List<Integer> collect = Stream.of(0, 1, 2, 3).collect(Collectors.toList());
        System.out.println(collect.size());

        for (Integer integer : collect) {
            new Consumer<Object>() {
                @Override
                public void accept(Object o) throws Exception {
                    System.out.println(o);
                }
            }.accept(integer);
        }
    }
}
